<template>
  <div class="ModeCard">
    <img class="img" :src="list.url" alt />
    <div class="dec">
      <div class="t1">{{list.title}}</div>
      <div class="t2">{{ list.desc }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ModeCard",
  props: {
    list: {
      type: Object,
      default: {}
    }
  },
  data() {
    return {};
  },
  mounted() {
    this.initial();
  },
  methods: {
    async initial() {}
  }
};
</script>

<style lang="scss" scoped>
.ModeCard {
  @media screen and (max-width: 767px) {
    width: 95%;
    margin-bottom: 20px;
  }
  width: 32%;
  height: 380px;
  // background-color: $green;
  border: 1px solid #e0e1e1;
  margin: 0 15px;
  display: flex;
  flex-direction: column;
  &:hover {
    box-shadow: 0px 10px 20px 2px rgba(189, 189, 189, 0.2);
    transform: translateY(-4px);
    transform-origin: center center 0px;
    transition-duration: 0.5s;
  }
  .img {
    width: 100%;
    height: 235px;
  }
  .dec {
    flex: 1;
    padding: 20px;
    .t1 {
      margin-bottom: 12px;
      font-weight: 600;
      font-size: 1.25em;
      line-height: 1.6;
      color: rgb(51, 51, 51);
      
    }
    .t2 {
      font-weight: 400;
      font-size: 16px;
      line-height: 1.6;
      color: rgb(153, 153, 153);
    }
  }
}
</style>
